.class public Lcom/estrongs/android/pop/app/AdbControllerActivity;
.super Lcom/estrongs/android/pop/esclasses/ESNoDisplayActivity;
.source "AdbControllerActivity.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESNoDisplayActivity;-><init>()V

    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESNoDisplayActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 3
    invoke-static {}, Lcom/estrongs/android/util/o0;->d()Z

    move-result v0

    if-eqz v0, :cond_2

    const-string v0, "adbRemoteIp"

    .line 4
    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "adbControlMode"

    .line 5
    invoke-virtual {p1, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-eqz v0, :cond_2

    if-eqz p1, :cond_2

    .line 6
    invoke-static {v0}, Les/lj;->a(Ljava/lang/String;)V

    .line 7
    invoke-static {}, Les/ij;->g()Z

    .line 8
    new-instance v1, Landroid/content/Intent;

    const-class v2, Lcom/estrongs/android/pop/ftp/ESFtpShortcut;

    invoke-direct {v1, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/4 v2, 0x1

    const-string v3, "adbControl"

    .line 9
    invoke-virtual {v1, v3, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string v3, "start"

    .line 10
    invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    const-string v4, "mode"

    if-eqz v3, :cond_0

    .line 11
    invoke-virtual {v1, v4, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    goto :goto_0

    :cond_0
    const-string v2, "stop"

    .line 12
    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 13
    invoke-static {v0}, Les/lj;->d(Ljava/lang/String;)V

    .line 14
    invoke-static {}, Lcom/estrongs/android/ftp/a;->j()Lcom/estrongs/android/ftp/a;

    move-result-object p1

    if-eqz p1, :cond_1

    invoke-static {}, Lcom/estrongs/android/ftp/a;->j()Lcom/estrongs/android/ftp/a;

    move-result-object p1

    iget-boolean p1, p1, Lcom/estrongs/android/ftp/a;->s:Z

    if-eqz p1, :cond_1

    const/4 p1, 0x2

    .line 15
    invoke-virtual {v1, v4, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 16
    :cond_1
    :goto_0
    invoke-virtual {p0, v1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    .line 17
    :cond_2
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method
